<?php
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;

$asset_v = time();
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="<?= Yii::$app->charset ?>">
    <title>天添爱OA控制台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <link rel="stylesheet" href="<?= Yii::$app->params['static_domain']?>plugin/bootstrap/bootstrap.css">
    <link rel="stylesheet" href="<?= Yii::$app->params['static_domain']?>plugin/font-awesome/font-awesome.css">
    <link rel="stylesheet" href="<?= Yii::$app->params['static_domain']?>plugin/bootstrap-table/bootstrap-table.css">
    <link rel="stylesheet" href="<?= Yii::$app->params['static_domain']?>plugin/bootstrap/bootstrap.css">
    <link rel="stylesheet" href="<?= Yii::$app->params['static_domain']?>plugin/x-editable/editable.css">
    <?= !empty($this->blocks['css_plugin']) ? $this->blocks['css_plugin'] : '' ?>
    <link rel="stylesheet" href="/css/main.css?v=<?= $asset_v?>">
    <link rel="stylesheet" href="/css/style.css?v=<?= $asset_v?>">
    <?= !empty($this->blocks['css']) ? $this->blocks['css'] : '' ?>
    <script src="/js/extra.js"></script>
    <?php $this->head() ?>
</head>
<body class="no-skin">
<?php $this->beginBody() ?>
	<?= $this->render('header')?>
	<div class="main-container">
		<?= $this->render('sidebar')?>
		<div class="main-content">
			<div class="main-content-inner">
                <div class="breadcrumbs ace-save-state breadcrumbs-fixed">
                    <?= Breadcrumbs::widget([
                        'homeLink' => false,
                        'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
                    ]) ?>
                    <div class="nav-search" id="nav-search">
                        <form class="form-search">
							<span class="input-icon">
								<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
								<i class="ace-icon fa fa-search nav-search-icon"></i>
							</span>
                        </form>
                    </div>
                </div>
				<div class="page-content">
                    <div class="row">
                        <div class="col-xs-12">
                            <?= $content?>
                        </div>
                    </div>
				</div>
			</div>
		</div>
		<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
			<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
		</a>
	</div>
<!--[if !IE]> -->
<script src="<?= Yii::$app->params['static_domain']?>plugin/jquery.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="<?= Yii::$app->params['static_domain']?>plugin/jquery2.js"></script>
<![endif]-->
<script src="<?= Yii::$app->params['static_domain']?>plugin/bootstrap/bootstrap.js"></script>
<script src="<?= Yii::$app->params['static_domain']?>plugin/layer/layer.js"></script>
<script src="<?= Yii::$app->params['static_domain']?>plugin/laydate/laydate.js"></script>
<script src="<?= Yii::$app->params['static_domain']?>plugin/jquery.form.js"></script>
<script src="<?= Yii::$app->params['static_domain']?>plugin/jquery.validate.js"></script>
<script src="<?= Yii::$app->params['static_domain']?>plugin/bootstrap-table/bootstrap-table.min.js"></script>
<script src="<?= Yii::$app->params['static_domain']?>plugin/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="<?= Yii::$app->params['static_domain']?>plugin/x-editable/editable.js"></script>
<script src="<?= Yii::$app->params['static_domain']?>plugin/bootstrap-table/extensions/editable/bootstrap-table-editable.js"></script>
<?= !empty($this->blocks['js_plugin']) ? $this->blocks['js_plugin'] : '' ?>
<script src="/js/elements.js?v=<?= $asset_v?>"></script>
<script src="/js/base.js?v=<?= $asset_v?>"></script>
<?= !empty($this->blocks['js']) ? $this->blocks['js'] : '' ?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
